<volist name="userlist" id="searchuser">
    <div class="fensi_box" uid="{$searchuser.user.uid}">
        <div class="fensi_box_ava">
            <img src="{$searchuser.user.avatar_small}" width=50 height=50>
        </div>
        <div class="fensi_box_info">
            <div class="fensi_box_info_name">{$searchuser.user.uname}</div>
            <div class="fensi_box_info_intro">{$searchuser.user.intro}</div>
        </div>
        <php>if($searchuser[user][follow_state][value] === '加关注'){
                if($searchuser[user][uid]!=$_SESSION[mid]){
        </php>
            <div class="fensi_box_guanzhu_button fensi_box_guanzhu_button_1" isfollower="{$searchuser[user][follow_state][follower]}" sort="fs_list" type="follow" linkto="{:U('w3g/Index/doFollow',array('from'=>'user_followers','type'=>'follow','key'=>$keyword,'user_id'=>$searchuser[user][uid],'page'=>$page))}">
                {$searchuser.user.follow_state.value}
            </div>
        <php>}}else{</php>
            <div class="fensi_box_guanzhu_button" sort="fs_list" type="unfollow" isfollower="{$searchuser[user][follow_state][follower]}" linkto="{:U('w3g/Index/doFollow',array('from'=>'user_followers','type'=>'unfollow','key'=>$keyword,'user_id'=>$searchuser[user][uid],'page'=>$page))}">
                {$searchuser.user.follow_state.value}
            </div>
        <php>}</php>
    </div>
</volist>
<!-- 分页 -->
  <div id="pager_box">
      <php>
          $has_pre   = $page > 1;
          $has_after = count($userlist) >= $item_count;
      </php>
      <php>if(empty($_GET['page']) || $_GET['page']==1){</php>
      <a href="javascript:;" id="prev" class="pager_child pager_p_n_none ">上一页</a>
    <php>}else{</php>
      <a href="{:U('w3g/Index/doSearch',array('user'=>'1','key'=>$keyword,'page'=>$page-1))}" id="prev" class="pager_child pager_p_n ">上一页</a>
    <php>}</php>
      <php>if(!$has_after) {</php>
      <a href="javascript:;" id="next" class="pager_child pager_p_n_none">下一页</a>
    <php>}else{</php>
      <a href="{:U('w3g/Index/doSearch',array('user'=>'1','key'=>$keyword,'page'=>$page+1))}" id="next" class="pager_child pager_p_n">下一页</a>
    <php>}</php>
      <php>if($has_pre || $has_after) {</php>
      <form action="{:U('w3g/Index/doSearch',array('key'=>$keyword,'user'=>'1'))}" method="post">
      <!-- <input type="text" name="page" size="2" /> -->
      <!-- <input type="submit" value="跳页" /> 第{$page}页 -->
      </form>
      <php>}</php>
  </div>